/*******************************************************************************
 * @file    bsp.h
 * @brief   The common board support library for all kinds of platform
 *
 * @version 1.0.0
 *******************************************************************************
 * @license Refer License or other description Docs
 * @author  Felix
 ******************************************************************************/
#ifndef  BSP_H
#define  BSP_H

#include "app_cfg.h"
#include "cpu/bsp_i2c.h"
#include "cpu/bsp_cpu.h"
#include "utils/util.h"

#if defined(__cplusplus)
extern "C" {
#endif /* __cplusplus */

typedef void (*iap_func)(void);

/**
 * Radio SEM IDX
 */
typedef enum
{
    SEM_IDX_NORMAL = 0,
    SEM_IDX_SCAN
} SemIndex_t;

/**
 * @brief the pointer of uart rx operation
 */
struct sp_uart_t
{
    uint32_t        timeout;    /**< The min timeslice of between two frames */
    BSP_UART_IDX    idx;
};

/****
Global Variables
****/
extern char* gCodeVers;

/****
Global Functions
****/
void os_delay(uint32_t dly_ms);


/*@}*/

#if defined(__cplusplus)
}
#endif /* __cplusplus */

#endif

